package service;

import com.baby.kim.model.User;
import com.baby.kim.service.IUserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author Xin.Jin7
 * @create 2018-04-24 17:06
 **/
public class IUserServiceTest2 {
    public static void main(String[] args) {
        ApplicationContext application = new ClassPathXmlApplicationContext("spring/applicationContext.xml");
        IUserService uService = (IUserService) application.getBean("userService");
        User user = uService.getUserById(1);
        System.out.println(user.getUserName());
    }
}
